package com.three.crm.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class MessageBean implements Parcelable {

    private int id;
    private int user_id;
    private String title;
    private String content;
    private int is_read;
    private String ctime;
    private int company_visit_id;
    private int type;

    public MessageBean() {
    }

    public MessageBean(int id, int user_id, String title, String content, int is_read, String ctime, int company_visit_id, int type) {
        this.id = id;
        this.user_id = user_id;
        this.title = title;
        this.content = content;
        this.is_read = is_read;
        this.ctime = ctime;
        this.company_visit_id = company_visit_id;
        this.type = type;
    }

    protected MessageBean(Parcel in) {
        id = in.readInt();
        user_id = in.readInt();
        title = in.readString();
        content = in.readString();
        is_read = in.readInt();
        ctime = in.readString();
        company_visit_id = in.readInt();
        type = in.readInt();
    }

    public static final Creator<MessageBean> CREATOR = new Creator<MessageBean>() {
        @Override
        public MessageBean createFromParcel(Parcel in) {
            return new MessageBean(in);
        }

        @Override
        public MessageBean[] newArray(int size) {
            return new MessageBean[size];
        }
    };

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getIs_read() {
        return is_read;
    }

    public void setIs_read(int is_read) {
        this.is_read = is_read;
    }

    public String getCtime() {
        return ctime;
    }

    public void setCtime(String ctime) {
        this.ctime = ctime;
    }

    public int getCompany_visit_id() {
        return company_visit_id;
    }

    public void setCompany_visit_id(int company_visit_id) {
        this.company_visit_id = company_visit_id;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeInt(user_id);
        dest.writeString(title);
        dest.writeString(content);
        dest.writeInt(is_read);
        dest.writeString(ctime);
        dest.writeInt(company_visit_id);
        dest.writeInt(type);
    }
}
